Problem Note 30522: The METADATA_SETASSN function fails to assign a value to the return code upon successful completion
If you use the METADATA_SETASSN function to modify the association list for a metadata object, the function fails to assign the return code if it completes successfully.
If the return code value has not been assigned a value in a prior statement, the value will retain the missing value to which it was originally initialized. If the return code variable was assigned a value in a previous
statement, the variable will retain that assigned value.
This behavior might cause unexpected results when the value for the return code variable is tested in a conditional statement such as IF-THEN-ELSE, DO WHILE, or DO UNTIL.
To circumvent the problem, explicitly initialize the return code variable to a missing value prior to executing the METADATA_SETASSN function, and include the missing condition in any conditional logic, for example:
rc=.;
if rc < 0 and rc ne . then do;
/*statements to execute when the association update fails*/
end;
Operating System and Release Information
SAS System | SAS Metadata Server | Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
z/OS | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2008-06-02 13:09:31 |
Date Created: | 2007-11-12 09:36:17 |